package com.zdsoft.finance.product.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.zdsoft.framework.core.common.domain.BaseEntity;


/**
 * 产品管理主表
 * @author longwei
 * @date 2016/11/08
 * @version 1.0
 */
@Entity
@Table(name="zf_product")
public class Product extends BaseEntity{

	/**
	 * 产品编号
	 */
	@Column(length=32)
	private String code;
	
	/**
	 * 产品名称
	 */
	@Column(length=255)
	private String name;
	
	/**
	 * 产品类型
	 */
	@Column(length=32)
	private String typeCd;
	
	/**
	 * 产品类型名称
	 */
	@Column(length=255)
	private String typeNm;
	
	/**
	 * 产品自定义类别编号
	 */
	@Column
	private String customCd;
	
	/**
	 * 产品自定义类别编号名称
	 */
	@Column
	private String customNm;
	
	/**
	 * 产品版本
	 */
	@Column(length=255)
	private String ver;
	
	/**
	 * 是否启用
	 */
	@Column(columnDefinition="boolean")
	private Boolean isEffect;
	
	/**
	 * 开始时间
	 */
	@Column
	private Long startTime;
	
	/**
	 * 结束时间
	 */
	@Column
	private Long endTime;

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCustomCd() {
		return customCd;
	}

	public void setCustomCd(String customCd) {
		this.customCd = customCd;
	}

	public String getTypeCd() {
		return typeCd;
	}

	public void setTypeCd(String typeCd) {
		this.typeCd = typeCd;
	}

	public String getVer() {
		return ver;
	}

	public void setVer(String ver) {
		this.ver = ver;
	}

	public Boolean getIsEffect() {
		return isEffect;
	}

	public void setIsEffect(Boolean isEffect) {
		this.isEffect = isEffect;
	}

	public Long getStartTime() {
		return startTime;
	}

	public void setStartTime(Long startTime) {
		this.startTime = startTime;
	}

	public Long getEndTime() {
		return endTime;
	}

	public void setEndTime(Long endTime) {
		this.endTime = endTime;
	}

	public String getTypeNm() {
		return typeNm;
	}

	public void setTypeNm(String typeNm) {
		this.typeNm = typeNm;
	}

	public String getCustomNm() {
		return customNm;
	}

	public void setCustomNm(String customNm) {
		this.customNm = customNm;
	}

}
